<template>
  <div class="app">
    <div class="warpBoxNews">
      <Video />
      <Summarizing />
      <Scheme />
      <SystemInfo />
      <Commercial />
      <nowUse />
    </div>
  </div>
</template>

<script>
import Banner from "@/components/home/banner.vue";
import Scheme from "@/components/home/scheme.vue";
import Summarizing from "@/components/home/summarizing.vue";
import SystemInfo from "@/components/home/systemInfo.vue";
import Commercial from "@/components/home/commercial.vue";
import nowUse from "@/components/home/use.vue";
import Video from "@/components/home/video.vue";
import "vue2-animate/dist/vue2-animate.min.css";
export default {
  name: "Home",
  components: {
    Banner,
    Summarizing,
    Scheme,
    SystemInfo,
    Commercial,
    nowUse,
    Video
  },
  data() {
    return {
      dialog: true,
      innerHeight: 0,
      options: {
        menu: "#menu",
        anchors: [
          "Video",
          "Banner",
          "Summarizing",
          "Scheme",
          "SystemInfo",
          "Commercial",
          "use"
        ],
        afterLoad: this.afterLoad,
        navigation: true
      }
    };
  },
  mounted() {
    if (process.client) {
      window.addEventListener("onresize", () => {
        window.onresize(() => {
          this.innerHeight = window.innerHeight + "px";
        });
      });
      this.innerHeight = window.innerHeight + "px";
    }
  },
  methods: {
    afterLoad(anchors, item) {
      this.$store.commit("changeCurrentAnchors", item.anchor);
    },
    fullpageNext() {
      this.myFullpage.moveSectionDown();
    }
  }
};
</script>

<style scoepd lang="scss">
.warpBoxNews {
  height: 100%;
  .section {
    height: 100vh;
    width: 100%;
  }
}

.position {
  z-index: 999;
  display: flex;
  flex-direction: column;
  position: absolute;
  top: 251px;
  right: 0;
  .img1 {
    width: 136px;
    height: 116px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    background: linear-gradient(
      -10deg,
      rgba(74, 116, 229, 1) 0%,
      rgba(152, 198, 255, 1) 100%
    );
  }
  .img2 {
    cursor: pointer;
    margin-top: 7px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    font-size: 16px;
    font-weight: 400;
    color: rgba(42, 42, 42, 1);
    line-height: 22px;
    width: 136px;
    height: 116px;
    background: rgba(255, 255, 255, 1);
    img {
      width: 86px;
      height: 86px;
    }
  }
}
.dialog {
  width: 100%;
  background: rgba(67, 67, 67, 0.55);
  position: absolute;
  z-index: 998;
  display: flex;
  align-items: center;
  justify-content: center;
  .box {
    width: 324px;
    height: 364px;
    background: url("/image/home/dialogbg.png") no-repeat;
    background-size: 100% 100%;
  }
}
.swiper-pagination-bullet {
  background: #fff;
  opacity: 1;
}

.swiper-pagination-bullet-active {
  background: #fb526c;
  opacity: 1;
}
</style>
